package com.ysqcould.Community.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.ysqcould.common.annotation.Excel;
import com.ysqcould.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 志愿者义工信息对象 t_vol_user
 * 
 * @author ruoyi
 * @date 2022-06-30
 */
public class VolUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 微信用户id */
    @Excel(name = "微信用户id")
    private Long userId;

    /** 协会id */
    @Excel(name = "协会id")
    private Long asId;

    /** 类型 1 义工 */
    @Excel(name = "类型 1 义工")
    private Long type;

    /** 联系人 */
    @Excel(name = "联系人")
    private String contacts;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 证书编号 */
    @Excel(name = "证书编号")
    private String certificateNo;

    /** 区域id */
    @Excel(name = "区域id")
    private Long areaId;

    /** 状态（字典 0正常 1冻结 2删除） */
    @Excel(name = "状态", readConverterExp = "字=典,0=正常,1=冻结,2=删除")
    private Long status;

    /** 内容（比如复选框数据） */
    @Excel(name = "内容", readConverterExp = "比=如复选框数据")
    private String customField;

    /** 审批状态：0审批中，1通过，2驳回，3撤销 */
    @Excel(name = "审批状态：0审批中，1通过，2驳回，3撤销")
    private Long checkStatus;

    /** 驳回理由 */
    @Excel(name = "驳回理由")
    private String rejectReason;

    /** 审批人id */
    @Excel(name = "审批人id")
    private Long approverId;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkTime;

    /** 总积分 */
    @Excel(name = "总积分")
    private BigDecimal integral;

    /** 总工时 */
    @Excel(name = "总工时")
    private BigDecimal laborHour;

    /** 背景url */
    @Excel(name = "背景url")
    private String bgUrl;

    /** 上传证书url */
    @Excel(name = "上传证书url")
    private String certificateUrl;

    /** 角色（默认为“0”义工） */
    @Excel(name = "角色", readConverterExp = "默=认为“0”义工")
    private Long role;

    /** 自定义数据（特长之类） */
    @Excel(name = "自定义数据", readConverterExp = "特=长之类")
    private String customData;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setAsId(Long asId) 
    {
        this.asId = asId;
    }

    public Long getAsId() 
    {
        return asId;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setContacts(String contacts) 
    {
        this.contacts = contacts;
    }

    public String getContacts() 
    {
        return contacts;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setCertificateNo(String certificateNo) 
    {
        this.certificateNo = certificateNo;
    }

    public String getCertificateNo() 
    {
        return certificateNo;
    }
    public void setAreaId(Long areaId) 
    {
        this.areaId = areaId;
    }

    public Long getAreaId() 
    {
        return areaId;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setCustomField(String customField) 
    {
        this.customField = customField;
    }

    public String getCustomField() 
    {
        return customField;
    }
    public void setCheckStatus(Long checkStatus) 
    {
        this.checkStatus = checkStatus;
    }

    public Long getCheckStatus() 
    {
        return checkStatus;
    }
    public void setRejectReason(String rejectReason) 
    {
        this.rejectReason = rejectReason;
    }

    public String getRejectReason() 
    {
        return rejectReason;
    }
    public void setApproverId(Long approverId) 
    {
        this.approverId = approverId;
    }

    public Long getApproverId() 
    {
        return approverId;
    }
    public void setCheckTime(Date checkTime) 
    {
        this.checkTime = checkTime;
    }

    public Date getCheckTime() 
    {
        return checkTime;
    }
    public void setIntegral(BigDecimal integral) 
    {
        this.integral = integral;
    }

    public BigDecimal getIntegral() 
    {
        return integral;
    }
    public void setLaborHour(BigDecimal laborHour) 
    {
        this.laborHour = laborHour;
    }

    public BigDecimal getLaborHour() 
    {
        return laborHour;
    }
    public void setBgUrl(String bgUrl) 
    {
        this.bgUrl = bgUrl;
    }

    public String getBgUrl() 
    {
        return bgUrl;
    }
    public void setCertificateUrl(String certificateUrl) 
    {
        this.certificateUrl = certificateUrl;
    }

    public String getCertificateUrl() 
    {
        return certificateUrl;
    }
    public void setRole(Long role) 
    {
        this.role = role;
    }

    public Long getRole() 
    {
        return role;
    }
    public void setCustomData(String customData) 
    {
        this.customData = customData;
    }

    public String getCustomData() 
    {
        return customData;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("asId", getAsId())
            .append("type", getType())
            .append("contacts", getContacts())
            .append("phone", getPhone())
            .append("certificateNo", getCertificateNo())
            .append("areaId", getAreaId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .append("customField", getCustomField())
            .append("checkStatus", getCheckStatus())
            .append("rejectReason", getRejectReason())
            .append("approverId", getApproverId())
            .append("checkTime", getCheckTime())
            .append("integral", getIntegral())
            .append("laborHour", getLaborHour())
            .append("bgUrl", getBgUrl())
            .append("certificateUrl", getCertificateUrl())
            .append("role", getRole())
            .append("customData", getCustomData())
            .toString();
    }
}
